package com.west.common.bean;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Created by hanyulang on 2017/9/11.
 */

public class User implements Serializable {

    /**
     * "token": "66733df041b74bf188de632ffa6b681e",
     * "rongtoken": "",
     * "userId": "5",
     * "tel": "13292345678",
     * "headImg": "/uploads/image/default_head.jpg"
     *
     *        "token":"aa56a53d485840f9b8b7427a4404a29c",
     *         "rongtoken":"",
     *         "userId":"10",
     *         "mobile":"15201258793",
     *         "userName":"152****8793",
     *         "headImg":"/uploads/image/default_head.jpg",
     *         "password":"670b14728ad9902aecba32e22fa4f6bd",
     *         "openids":"",
     *         "opensFlag":"",
     *         "inviteName":"",
     *         "inviteCode":"226010",
     *         "inviteUrl":"http://120.27.122.235:8080/invite10.html",
     *         "isCooperation":"0"
     *
     *           "jingdongNo":"京东账号",
     *          "state":"1 通过 0 待审核 2 未通过",
     *          "dismissReason":"失败原因",
     */

    private String token;
    private String rongtoken;
    private String userId;
    private String tel;
    private String headImg;

    private String mobile;
    private String userName;
    private String openids;
    private String opensFlag;
    private String inviteName;
    private String inviteCode;
    private String inviteUrl;
    private String inviteTotal;
    private String isCooperation;
    private String payno;
    private String paynoName;
    private String usableAmount;
    private String recomeMoney;
    private int msgCount;
    private String realName;
    private String wechat;
    private String flag;

    private String jingdongNo;
    private String state;
    private String dismissReason;

    public String getJingdongNo() {
        return jingdongNo;
    }

    public void setJingdongNo(String jingdongNo) {
        this.jingdongNo = jingdongNo;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDismissReason() {
        return dismissReason;
    }

    public void setDismissReason(String dismissReason) {
        this.dismissReason = dismissReason;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public String getUsableAmount() {
        return usableAmount;
    }

    public void setUsableAmount(String usableAmount) {
        this.usableAmount = usableAmount;
    }

    public String getRecomeMoney() {
        return recomeMoney;
    }

    public void setRecomeMoney(String recomeMoney) {
        this.recomeMoney = recomeMoney;
    }

    public int getMsgCount() {
        return msgCount;
    }

    public void setMsgCount(int msgCount) {
        this.msgCount = msgCount;
    }

    public String getInviteTotal() {
        return inviteTotal;
    }

    public void setInviteTotal(String inviteTotal) {
        this.inviteTotal = inviteTotal;
    }

    public String getPaynoName() {
        if(TextUtils.isEmpty(paynoName) || "null".equals(paynoName)){
            return "";
        }
        return paynoName;
    }

    public void setPaynoName(String paynoName) {
        this.paynoName = paynoName;
    }

    public String getPayno() {
        if(TextUtils.isEmpty(payno) || "null".equals(payno)){
            return "";
        }
        return payno;
    }

    public void setPayno(String payno) {
        this.payno = payno;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOpenids() {
        return openids;
    }

    public void setOpenids(String openids) {
        this.openids = openids;
    }

    public String getOpensFlag() {
        return opensFlag;
    }

    public void setOpensFlag(String opensFlag) {
        this.opensFlag = opensFlag;
    }

    public String getInviteName() {
        return inviteName;
    }

    public void setInviteName(String inviteName) {
        this.inviteName = inviteName;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }

    public String getInviteUrl() {
        return inviteUrl;
    }

    public void setInviteUrl(String inviteUrl) {
        this.inviteUrl = inviteUrl;
    }

    public String getIsCooperation() {
        return isCooperation;
    }

    public void setIsCooperation(String isCooperation) {
        this.isCooperation = isCooperation;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRongtoken() {
        return rongtoken;
    }

    public void setRongtoken(String rongtoken) {
        this.rongtoken = rongtoken;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    /**
     * 0 正常 1禁用 2 验号到期 3仅提现
     * @return
     */
    public String getFlag() {
        return flag;
    }

    public void setFlag(String flag) {
        this.flag = flag;
    }
}
